home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / AEA / Source / Sources / Object Models / AEAModelProperty.cc < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  599 b   |  29 lines

  1. /*    ===================
  2.  *    AEAModelProperty.cc
  3.  *    ===================
  4.  */
  5.  
  6. #include "AEADebugging.h"
  7.  
  8. #include "AEAModelProperty.hh"
  9. #include "AEADesc.hh"
  10.  
  11. AEAModelProperty::AEAModelProperty(const AEAModel &inContainer, DescType inPropertyID)
  12. : AEAModelSub(inContainer), mPropertyID(inPropertyID)
  13. {
  14. }
  15.  
  16. void
  17. AEAModelProperty::GetKeyData(DescType inKeyForm, AEDesc &outAEDesc) const
  18. {
  19.     OSErr err;
  20.     if (inKeyForm != formPropertyID)
  21.         ThrowOSErr_(errAEEventNotHandled); // Change this
  22.     
  23.     AEADesc desc;
  24.     desc.Create(typeType, &mPropertyID, sizeof mPropertyID);
  25.     
  26.     outAEDesc = desc.Ref();
  27.     desc.Reset();
  28. }
  29.